package cn.iocoder.yudao.runnable;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.TimeZone;

/**
 * 服务启动类
 */
//@NacosPropertySource(dataId = InfraNacosConstants.DATA_ID, type = ConfigType.PROPERTIES, autoRefreshed = InfraNacosConstants.AUTO_REFRESHED)
@EnableTransactionManagement
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package}
@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.runnable", "${yudao.info.base-package}.module"})
@Slf4j
public class ResearchAdminApplication {

    public static void main(String[] args) {
        // 设置 ForkJoinPool.commonPool() 的并行级别
        //System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "16");

        // 设置为UTC时区
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        log.info("默认时区: " + TimeZone.getDefault().getID());
        SpringApplication.run(ResearchAdminApplication.class, args);
    }

}
